/**
 * 个人中心页面接口
 */
import {
	http
} from '@/utils/request/service.js'

//=================用户收货地址======================

/**获取收货地址列表*/
export const getCtAddressListApi = (params) => {
	return http.post('/patient/ctAddress/getCtAddressList', params)
}
/**获取收货地址详情*/
export const getCtAddressApi = (id) => {
	return http.post('/patient/ctAddress/getCtAddress', {id})
}

/**设置默认收货地址*/
export const chooseCtAddressApi = (id) => {
	return http.post('/patient/ctAddress/chooseCtAddress',{id})
}
/**修改收货地址详情*/
export const updateCtAddressApi = (params) => {
	return http.post('/patient/ctAddress/updateCtAddress', params)
}
/**新增收货地址信息*/
export const addCtAddressApi = (params) => {
	return http.post('/patient/ctAddress/addCtAddress', params)
}
/**删除收货地址信息*/
export const delCtAddressApi = (id) => {
	return http.post('/patient/ctAddress/delCtAddress', {id})
}

/**获取患者默认地址*/
export const getPatientDefaultAddressApi = (patientId) => {
	return http.post('/patient/ctAddress/getPatientDefaultAddress', {patientId})
}

/**设置患者默认地址*/
export const setPatientDefaultAddressApi = (params) => {
	return http.post('/patient/ctAddress/setPatientDefaultAddress', params)
}

